package com.kuaidao.sys.service.dictiondry;

import com.kuaidao.common.entity.IdsEntity;
import com.kuaidao.common.mapper.IBaseCRUD;
import com.kuaidao.sys.dto.dictionary.DictionaryAddUpdateDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryReqDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryResDTO;
import com.kuaidao.sys.entity.user.Dictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface IDictiondryService<Dictiondry, Long> extends IBaseCRUD<Dictiondry, Long> {

    /**
     * 增加 字典主题
     * @param dictiondry
     * @return
     */
    public boolean insertDictiondrt(Dictiondry dictiondry);

    /**
     * 模糊分页查询字典主题
     * @param dictionaryReqDTO
     * @return
     */
    List<DictionaryResDTO> findDictionaryByPage(DictionaryReqDTO dictionaryReqDTO);

    /**
     * 根据主键查询字典主题信息
     * @param primaryKey
     * @return
     */
    Dictionary  findDictionaryByPrimaryKey(Long primaryKey);

    /**
     * 修改字典主题
     * @param dictionary
     * @return
     */
    public boolean updateDictionary(Dictionary dictionary);

    /**
     * 根据ID批量删除
     * @param keys
     * @return
     */
    boolean deleteDictionarys(IdsEntity idsEntity);




}
